package com.atguigu.day15.homework.h2;

/**
 * @version 1.0
 * @Author 马冰
 * @Date 2024/11/19 9:07
 * @注释
 */
public class Equipment {
    private int id;//编号
    private String brand;//品牌
    private double price;//价格
    private String devicename;//设备名称
    private Status state;//状态

    public Equipment() {
    }

    public Equipment(int id, String brand, double price, String devicename, Status state) {
        this.id = id;
        this.brand = brand;
        this.price = price;
        this.devicename = devicename;
        this.state = state;
    }

    @Override
    public String toString() {
        return "编号:" + id + ", 品牌:" + brand + ", 价格:" + price + ", 设备名称:" + devicename + ", 状态:" + state;
    }
}
